/** * @email 99723251@qq.com * @author: zhangyangtao * @date: 2019/5/11 * @time: 5:07 PM */public enum CountryEnum {    ONE(1,"你"),TWO(2,"好"),THREE(3,"朋"),FOUR(4,"友");    private Integer retCode;    private String retMessage;    CountryEnum(Integer retCode, String retMessage) {        this.retCode = retCode;        this.retMessage = retMessage;    }    public static CountryEnum FOREACH_ENMU(int index){        CountryEnum[] values = CountryEnum.values();        for (CountryEnum value : values) {            if (index == value.getRetCode()) {                return value;            }        }        return null;    }    public Integer getRetCode() {        return retCode;    }    public void setRetCode(Integer retCode) {        this.retCode = retCode;    }    public String getRetMessage() {        return retMessage;    }    public void setRetMessage(String retMessage) {        this.retMessage = retMessage;    }}